Assuming that libnag_dmc.a has been installed in a directory in the search path of the linker, such as /usr/lib, and that the NAG Data Mining Components include files have been moved to /usr/include, then you may link to the NAG Data Mining Components in the following manner:
gcc -o driver.exe driver.c -lnag_dmc -lmwhere driver.c is your application program.
| Example File | Additional File Needed |
|---|---|
| basic_logistic_exf.c | iris_sp.c |
| dt_exf.c | df_iris.c |
| hclust_exf.c | iris.c |
| kmeans_exf.c | iris.c |
| knnc_exf.c | df_iris.c |
| knnp_exf.c | df_iris.c |
| logistic_exf.c | iris_sp.c |
| pca_exf.c | iris.c |
| regr_exf.c | iris_sp.c |
Issue the compilation command
gcc -o pca_exf.exe iris.c pca_exf.c -lnag_dmc -lm
This command will create an executable file called pca_exf.exe.
The exception to this is the ODBC example contained in file odbc_ex.c. This example requires that some ODBC software is installed on your system as well as the NAG Data Mining Components. To compile and link this example copy the files to your current directory as described above. If you have unixODBC installed in a directory on the linker's search path you can compile and link this example by issuing the command
gcc -o odbc_ex.exe odbc_ex.c -lnag_dmc -lodbc -lm
The NAG Response Centres are available for general enquiries from all users and also for technical queries from sites with an annually licensed product or support service.
The Response Centres are open during office hours, but contact is possible by fax, email and phone (answering machine) at all times.
When contacting a Response Centre please quote your NAG site reference and NAG product code (in this case DRLUX10DA).
The NAG websites are an information service providing items of interest to users and prospective users of NAG products and services. The information is reviewed and updated regularly and includes implementation availability, descriptions of products, downloadable software, product documentation and technical reports. The NAG websites can be accessed at
or
http://www.nag.com/ (in North America)
or
http://www.nag-j.co.jp/ (in Japan)
NAG Ltd
Tel: +44 (0)1865 511245
Fax: +44 (0)1865 310139
NAG Ltd Response Centre
email: support@nag.co.uk
Tel: +44 (0)1865 311744
Fax: +44 (0)1865 310139
NAG Inc
Tel: +1 630 971 2337
Fax: +1 630 971 2706
NAG Inc Response Center
email: infodesk@nag.com
Tel: +1 630 971 2345
Fax: +1 630 971 2706
Nihon NAG KK
Tel: +81 (0)3 5542 6311
Fax: +81 (0)3 5542 6312
email: help@nag-j.co.jp
[NP3626/UN]